﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmTestItemManange.aspx.cs"
    Inherits="LMS.SMSH.WEB.AdmTestItemManange" MaintainScrollPositionOnPostback="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>实验信息管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div align="center">
        <table width="800" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="30" align="left" style="width: 120px">
                    &nbsp;&nbsp;<strong>实验信息管理</strong>
                </td>
                <td height="30" align="right" style="width: 580px">
                    <font size="2">实验编号<asp:TextBox ID="txtProID" runat="server" Columns="6" MaxLength="50"
                        Width="150px"></asp:TextBox>
                        实验名称<asp:TextBox ID="txtProName" runat="server" Columns="6" MaxLength="50" Width="150px"></asp:TextBox>
                    </font>&nbsp;
                    <asp:Button ID="btnFind" runat="server" OnClick="btnFind_Click" Text="搜 索" />
                    &nbsp;&nbsp;&nbsp;
                     <asp:Button ID="btnAddTestInfo" runat="server" OnClick="btnAddTestInfo_Click" Text="新 增" />&nbsp;
                </td>
            </tr>
            <tr>
                <td height="30" colspan="2" align="left">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="gvProject" runat="server" AutoGenerateColumns="False" BorderColor="Black"
                                Width="800px" AllowPaging="True" OnRowDataBound="gvProject_RowDataBound" 
                                PageSize="5" onpageindexchanging="gvProject_PageIndexChanging" 
                                onrowcommand="gvProject_RowCommand">
                                <RowStyle BackColor="Orange" Font-Size="Small" />
                                <Columns>
                                    <asp:TemplateField HeaderText="行编号">
                                        <HeaderStyle HorizontalAlign="Center" Width="8%" />
                                        <ItemStyle HorizontalAlign="Center" Width="8%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="全选">
                                        <HeaderStyle HorizontalAlign="Center" Width="9%" />
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="chkHeader" runat="server" Text="全选" AutoPostBack="true" OnCheckedChanged="chkHeader_CheckedChanged" />
                                        </HeaderTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="9%" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkItem" runat="server" Text="" AutoPostBack="true" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="proId" HeaderText="实验ID">
                                        <HeaderStyle HorizontalAlign="Center" Width="9%" />
                                        <ItemStyle HorizontalAlign="Center" Width="9%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="proName" HeaderText="实验名称">
                                        <ItemStyle HorizontalAlign="Center" Width="15%" />
                                        <HeaderStyle HorizontalAlign="Center" Width="15%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="教师ID" DataField="proTeacherId">
                                        <ItemStyle HorizontalAlign="Center" Width="9%" />
                                        <HeaderStyle HorizontalAlign="Center" Width="9%" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="实验时间">
                                        <ItemStyle HorizontalAlign="Center" Width="8%" />
                                        <HeaderStyle HorizontalAlign="Center" Width="8%" />
                                        <ItemTemplate>
                                            <%#Eval("proData", "{0:yyyy-MM-dd}")%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="选择学生">
                                        <HeaderStyle HorizontalAlign="Center" Width="5%" />
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HyperLink1" runat="server" Text="编辑" NavigateUrl='<%# "AdminTestStuAdd.aspx?currentRowID="+ DataBinder.Eval(Container.DataItem,"ID")%>'>
                                            </asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="proStuNo" HeaderText="实验人数">
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                        <HeaderStyle HorizontalAlign="Center" Width="5%" />
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="详细情况" DataField="proDetail">
                                        <HeaderStyle HorizontalAlign="Center" Width="15%" />
                                        <ItemStyle HorizontalAlign="Center" Width="15%" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <asp:Button ID="btnDeleteInfo" runat="server" CommandArgument='<%#Eval("ID")%>'
                                                CommandName="myDelete" Text="删除" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="6%" />
                                        <HeaderStyle HorizontalAlign="Center" Width="6%" />
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle BackColor="OrangeRed" />
                                <AlternatingRowStyle BackColor="NavajoWhite" />
                                <PagerSettings FirstPageText="第一页" LastPageText="最后一页" Mode="NextPreviousFirstLast"
                                    NextPageText="下一页" PreviousPageText="上一页" />
                                <PagerStyle BackColor="#FFC080" Font-Size="Small" Font-Strikeout="False" Font-Underline="False"
                                    ForeColor="Black" HorizontalAlign="Center" VerticalAlign="Top" />
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
